<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibQQt: QZXingFilterRunnable Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibQQt
   &#160;<span id="projectnumber">v3.1</span>
   </div>
   <div id="projectbrief">开源、跨平台Qt应用程序框架中间件</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="class_q_z_xing_filter_runnable-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">QZXingFilterRunnable Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>A new Runnable is created everytime the filter gets a new frame.  
 <a href="class_q_z_xing_filter_runnable.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_q_z_xing_filter_8h_source.html">QZXingFilter.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for QZXingFilterRunnable:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_q_z_xing_filter_runnable.png" usemap="#QZXingFilterRunnable_map" alt=""/>
  <map id="QZXingFilterRunnable_map" name="QZXingFilterRunnable_map">
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ae8ed468a251cc2daa6b251346c6c33e5"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_z_xing_filter_runnable.html#ae8ed468a251cc2daa6b251346c6c33e5">QZXingFilterRunnable</a> (<a class="el" href="class_q_z_xing_filter.html">QZXingFilter</a> *filter)</td></tr>
<tr class="separator:ae8ed468a251cc2daa6b251346c6c33e5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a30cc32aa9a434b5d2ebfe3fcda4ad8cb"><td class="memItemLeft" align="right" valign="top">QVideoFrame&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_z_xing_filter_runnable.html#a30cc32aa9a434b5d2ebfe3fcda4ad8cb">run</a> (QVideoFrame *input, const QVideoSurfaceFormat &amp;surfaceFormat, RunFlags flags)</td></tr>
<tr class="memdesc:a30cc32aa9a434b5d2ebfe3fcda4ad8cb"><td class="mdescLeft">&#160;</td><td class="mdescRight">This method is called whenever we get a new frame. It runs in the UI thread.  <a href="#a30cc32aa9a434b5d2ebfe3fcda4ad8cb">More...</a><br /></td></tr>
<tr class="separator:a30cc32aa9a434b5d2ebfe3fcda4ad8cb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a319ed1ef7b808ee6098e013c4f3387eb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_z_xing_filter_runnable.html#a319ed1ef7b808ee6098e013c4f3387eb">processVideoFrameProbed</a> (<a class="el" href="struct_simple_video_frame.html">SimpleVideoFrame</a> &amp;videoFrame, const QRect &amp;captureRect)</td></tr>
<tr class="separator:a319ed1ef7b808ee6098e013c4f3387eb"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A new Runnable is created everytime the filter gets a new frame. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="ae8ed468a251cc2daa6b251346c6c33e5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae8ed468a251cc2daa6b251346c6c33e5">&#9670;&nbsp;</a></span>QZXingFilterRunnable()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QZXingFilterRunnable::QZXingFilterRunnable </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_q_z_xing_filter.html">QZXingFilter</a> *&#160;</td>
          <td class="paramname"><em>filter</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p><a class="el" href="class_q_z_xing_filter_runnable.html" title="A new Runnable is created everytime the filter gets a new frame. ">QZXingFilterRunnable</a> </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a319ed1ef7b808ee6098e013c4f3387eb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a319ed1ef7b808ee6098e013c4f3387eb">&#9670;&nbsp;</a></span>processVideoFrameProbed()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QZXingFilterRunnable::processVideoFrameProbed </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_simple_video_frame.html">SimpleVideoFrame</a> &amp;&#160;</td>
          <td class="paramname"><em>videoFrame</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QRect &amp;&#160;</td>
          <td class="paramname"><em>captureRect</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Create QImage from QVideoFrame.</p>
<p>This is a forced "conversion", colors end up swapped.</p>
<p>This is a forced "conversion", colors end up swapped.</p>
<p>nv12 format, encountered on macOS</p>
<p>TODO: Handle (create QImages from) YUV formats. </p>

</div>
</div>
<a id="a30cc32aa9a434b5d2ebfe3fcda4ad8cb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a30cc32aa9a434b5d2ebfe3fcda4ad8cb">&#9670;&nbsp;</a></span>run()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QVideoFrame QZXingFilterRunnable::run </td>
          <td>(</td>
          <td class="paramtype">QVideoFrame *&#160;</td>
          <td class="paramname"><em>input</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QVideoSurfaceFormat &amp;&#160;</td>
          <td class="paramname"><em>surfaceFormat</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">RunFlags&#160;</td>
          <td class="paramname"><em>flags</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This method is called whenever we get a new frame. It runs in the UI thread. </p>
<p>We dont want to decode every single frame we get, as this would be very costly These checks are attempt on having only 1 frame being processed at a time. <br />
<br />
 Copy the data we need to the filter. TODO: Depending on the system / platform, this copy hangs up the UI for some seconds. Fix this. <br />
 All processing that has to happen in another thread, as we are now in the UI thread. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>R:/Develop/a0-develop/LibQQt/src/exquisite/qrcode/qrdecode/<a class="el" href="_q_z_xing_filter_8h_source.html">QZXingFilter.h</a></li>
<li>R:/Develop/a0-develop/LibQQt/src/exquisite/qrcode/qrdecode/QZXingFilter.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
